<?php
defined( '_VALID_MOS' ) or die();

	require_once( $mainframe->getPath( 'toolbar_html' ) );
	require_once( $mainframe->getPath( 'toolbar_default' ) );

	$action = mosGetParam($_REQUEST, 'act', '');
	 $task = mosGetParam($_REQUEST, 'task', '');
	 $listId = intval(mosGetParam($_REQUEST, 'listid', 0));
	 $listType = intval(mosGetParam($_REQUEST, 'listype', 0));

 switch ($action) {
	 case ('subscribers') :

	 	switch ($task) {
			case ('import') :
				menuPostman::IMPORT();
				break;
			case ('export') :
				menuPostman::EXPORT();
				break;
			case ('new') :
			case ('add') :
				menuPostman::NEWSUBSCRIBER();
				break;
			case ('show') :
				menuPostman::SHOWSUBSCRIBER();
				break;
			case ('doExport') :
			case ('cpanel') :

				break;
			default :
				menuPostman::REGISTERED();
				break;
	 	}
	 	break;
	 case ('list') :

	 	switch ($task) {
			case ('new') :
			case ('add') :
				menuPostman::NEW_LIST('');
				break;
			case ('edit') :
				menuPostman::EDIT_LIST('');
				break;
			case ('cpanel') :

				break;
			default:
				menuPostman::SHOW_LIST();
				break;
	 	}
	 	break;
	 case ('mailing') :

	 	switch ($task) {
			case ('edit') :
				menuPostman::NEWMAILING();
				break;
			case ('preview') :
				menuPostman::PREVIEWMAILING('show');
				break;
			case ('savePreview') :
				menuPostman::PREVIEWMAILING('show');
				break;
			case ('view') :
				menuPostman::CANCEL_ONLY('show');
				break;
			case ('publish') :
				menuPostman::CANCEL_ONLY('');
				break;
			case ('cpanel') :

				break;
			case ('show') :
			default :
				menuPostman::SHOW_MAILINGS();
				break;
	 	}
	 	break;
	 case ('configuration') :

	 	switch ($task) {
			case ('save') :
			case ('cpanel') :

				break;
			default :
				menuPostman::CONFIGURATION();
				break;
	 	}
	 	break;
	 case ('statistics') :

	 	switch ($task) {
			case ('edit') :
				menuPostman::CANCEL_ONLY('cancel');
				break;
			case ('cpanel') :

				break;
			default :

				menuPostman::STATISTICS();
				break;
	 	}
	 	break;
	 case ('update') :

	 	switch ($task) {
			case ('doUpdate'):
			case ('version'):
			case ('new1'):
			case ('new2'):
			case ('new3'):
				menuPostman::CANCEL_ONLY('show');
				break;
			case ('cpanel') :

				break;
			case ('complete') :
				menuPostman::DOUPDATE();
				break;
			case ('show') :
			default :
				menuPostman::UPDATE();
				break;
	 	}
	 	break;
	 case ('about') :

	 	switch ($task) {
			case ('cpanel') :

				break;
			default :
				menuPostman::ABOUT();
				break;
	 	}
	 	break;
	 default :
	 	break;
 }